import request from "@/utils/request";

// 查询床位分页数据
export const queryBedPageApi = (params) => request.post("/bed/page", params);

// 查询某房间下所有床位
export const queryBedListByRoomApi = (roomId) => request.get(`/bed/list?roomId=${roomId}`);

// 新增床位
export const addBedApi = (bed) => request.post("/bed", bed);

// 根据ID查询床位
export const queryBedByIdApi = (id) => request.get(`/bed/${id}`);

// 修改床位
export const updateBedApi = (bed) => request.put("/bed", bed);

// 删除床位
export const deleteBedApi = (id) => request.delete(`/bed/${id}`); 